#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int num;
    cout << "Vvedite razmer massiva ";
    cin >> num;
    int *p_arr = new int[num];
    for (int i = 0; i < num; i++) {
        p_arr[i] = rand();cout<<"\t"<<p_arr[i];}
    delete [] p_arr;
    return a.exec();
}
